﻿<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Script file="AutoTweetOptionsPanel.lua" />

  <Frame name="AutoTweetOptionsCheckButtonTemplate" virtual="true">
    <Size>
      <AbsDimension x="26" y="26"/>
    </Size>
    <Layers>
      <Layer level="ARTWORK">
        <FontString name="$parentText" inherits="GameFontHighlightMedium">
          <Anchors>
            <Anchor point="LEFT" relativePoint="RIGHT">
              <Offset>
                <AbsDimension x="0" y="1"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>    
  </Frame>

  <CheckButton name="AutoTweetOptionsSmallCheckButtonTemplate" inherits="InterfaceOptionsSmallCheckButtonTemplate" virtual="true">
    <Scripts>
      <OnLoad>
        self.type = CONTROLTYPE_CHECKBOX;
        self.text = _G[self:GetName().."Text"];
        
        BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
      </OnLoad>
    </Scripts>
  </CheckButton>

  <Frame name="AutoTweetOptionsPanel">
    <Layers>
      <Layer level="ARTWORK">
        <FontString name="$parentTitle" text="AutoTweet" inherits="GameFontNormalLarge" justifyH="LEFT" justifyV="TOP">
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="16" y="-16"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="$parentSubText" text="These options allow you to enable or disable TweetCraft AutoTweet addons and categories." inherits="GameFontHighlightSmall" nonspacewrap="true" maxLines="3" justifyH="LEFT" justifyV="TOP">
          <Size>
            <AbsDimension y="32" x="0"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="0" y="-8"/>
              </Offset>
            </Anchor>
            <Anchor point="RIGHT">
              <Offset>
                <AbsDimension x="-32" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Scripts>
      <OnLoad>
        self.name = "AutoTweet"
        self.parent = "TweetCraft"
      </OnLoad>
      <OnShow>
        CreateAutoTweetOptions(self)
      </OnShow>
    </Scripts>
  </Frame>
</Ui>